<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('同步结算账户信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-agentInfo-changeAccounts">
            <input type="hidden" name="screen_idnum" th:value="${acMap[SCREEN_IDNUM]}">
            <input type="hidden" name="settle_serial" th:value="${acMap.settle_serial}">
            <input type="hidden" name="sign" th:value="1">
            <input type="hidden" name="bank_headname" th:value="${acMap.BANK_HEADNAME}">
            <input type="hidden" name="bank_name" th:value="${acMap.BANK_NAME}">
            <fieldset>
                <legend>出款账户信息</legend>
                <div class="form-group">
                    <label class="col-sm-3 control-label">结算人：</label>
                    <div class="col-sm-8">
                        <input name="S1" th:value="${acMap.S1}" class="form-control" type="text" required>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">出款卡：</label>
                    <div class="col-sm-8">
                        <input name="S3" th:value="${acMap.S3}" class="form-control" type="text" required readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">结算卡：</label>
                    <div class="col-sm-8">
                        <input name="S2" th:value="${acMap.S2}" class="form-control" type="text" required>
                    </div>
                </div>
            </fieldset>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "agentInfo/profitSbOrder";
        $("#form-agentInfo-changeAccounts").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/changeAccounts", $('#form-agentInfo-changeAccounts').serialize());
            }
        }

    </script>
</body>
</html>